﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OrderHandlingWorkflow
{
    public class Order
    {
        private int id;
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private List<Item> items;
        public List<Item> Items
        {
            get { return items; }
            set { items = value; }
        }

        private Customer customer;
        public Customer Customer
        {
            get { return customer; }
            set { customer = value; }
        }

        private bool paymentApproved;
        public bool PaymentApproved
        {
            get { return paymentApproved; }
            set { paymentApproved = value; }
        }

        private bool allItemsInStock;

        public bool AllItemsInStock
        {
            get { return allItemsInStock; }
            set { allItemsInStock = value; }
        }
        

        public Order(int id, List<Item> items, Customer customer)
        {
            this.id = id;
            this.items = items;
            this.customer = customer;

            PaymentApproved = true;
            AllItemsInStock = true;
        }
    }
}
